/**
 * Created by Administrator on 2017/10/17.
 */
// var mongoose = require('mongoose');
// var materializedPlugin = require('mongoose-materialized');
//
// var Schema = mongoose.Schema;
// var cateSchema=new Schema({
// text:String
// });
// cateSchema.plugin( materializedPlugin);
//
// module.exports=mongoose.model('Cate',cateSchema,'cate');


var mongoose = require('mongoose');
var materializedPlugin = require('mongoose-materialized');

var schema = new mongoose.Schema({
	text:String
});
schema.plugin(materializedPlugin);
var Cate = mongoose.model('Cate', schema,'cate');
module.exports = Cate;
